package com.hyt.it.ogt.ksmonitor.statistics.rpc;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;


@FeignClient(name = "it-ogt-kw${kw.tag:}", contextId = "monitorStatistics", fallback = KwStatisticsClientHystrix.class)
public interface KwStatisticsClient {

    @GetMapping("/kw/video/monitorStatistics/statisticsByType")
    String getMonitorStatisticsByType(@RequestParam String examId, @RequestParam Integer statisticsType);

    @GetMapping("/api/ks/candidate/getRoomIdByCandidateId")
    String getRoomIdByCandidateId(@RequestParam String candidateId);

    @GetMapping("/api/ks/candidate/getRoomIdByCandidateIds")
    String findRoomIdsByCandidateIds(@RequestParam List<String> candidateIds);

}

